home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-07-26 | 2.8 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: Quick3.h
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Jul 26 04:26:16 1995, modified Wed Jul 26 04:26:16 1995, creator 'CWIE', type ASCII, 2066 bytes "Quick3.h" , at 0x892 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 51 75 69 63 6b 33 | 2e 68 00 00 00 00 00 00 |..Quick3|.h......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 08 12 00 | 00 01 9a ac 3b ac a8 ac |........|....;...|
|00000060| 3b ac a8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 89 51 00 00 |........|.....Q..|
|00000080| 2f 2a 20 51 75 69 63 6b | 33 2e 68 0d 48 49 53 54 |/* Quick|3.h.HIST|
|00000090| 4f 52 59 3a 0d 33 2f 31 | 30 2f 39 32 20 64 67 70 |ORY:.3/1|0/92 dgp|
|000000a0| 09 43 61 73 74 20 50 41 | 52 41 4d 53 20 74 6f 20 |.Cast PA|RAMS to |
|000000b0| 62 65 20 61 20 73 68 6f | 72 74 20 69 6e 74 2e 0d |be a sho|rt int..|
|000000c0| 09 09 09 49 66 20 61 70 | 70 72 6f 70 72 69 61 74 |...If ap|propriat|
|000000d0| 65 2c 20 75 73 65 20 74 | 68 65 20 36 38 38 38 31 |e, use t|he 68881|
|000000e0| 20 6c 6f 67 20 61 6e 64 | 20 65 78 70 20 69 6e 73 | log and| exp ins|
|000000f0| 74 72 75 63 74 69 6f 6e | 73 20 66 6f 72 20 73 70 |truction|s for sp|
|00000100| 65 65 64 2e 0d 09 09 09 | 46 6f 72 20 73 70 65 65 |eed.....|For spee|
|00000110| 64 2c 20 64 65 66 69 6e | 65 64 20 65 78 70 31 30 |d, defin|ed exp10|
|00000120| 28 29 2c 20 61 6e 64 20 | 75 73 65 20 65 78 70 20 |(), and |use exp |
|00000130| 61 6e 64 20 6c 6f 67 20 | 74 6f 20 63 6f 6d 70 75 |and log |to compu|
|00000140| 74 65 20 70 6f 77 2e 0d | 09 09 09 54 68 65 73 65 |te pow..|...These|
|00000150| 20 63 68 61 6e 67 65 73 | 20 73 70 65 65 64 20 75 | changes| speed u|
|00000160| 70 20 74 68 65 20 63 6f | 6d 70 75 74 61 74 69 6f |p the co|mputatio|
|00000170| 6e 20 65 6e 6f 72 6d 6f | 75 73 6c 79 2c 20 70 65 |n enormo|usly, pe|
|00000180| 72 68 61 70 73 20 35 30 | 2d 66 6f 6c 64 2c 0d 09 |rhaps 50|-fold,..|
|00000190| 09 09 79 65 74 20 77 68 | 65 6e 20 72 75 6e 20 6f |..yet wh|en run o|
|000001a0| 6e 20 22 73 61 6d 70 6c | 65 2e 64 61 74 61 22 20 |n "sampl|e.data" |
|000001b0| 74 68 65 20 72 65 73 75 | 6c 74 69 6e 67 20 22 73 |the resu|lting "s|
|000001c0| 61 6d 70 6c 65 2e 66 69 | 74 22 20 69 73 20 75 6e |ample.fi|t" is un|
|000001d0| 63 68 61 6e 67 65 64 2e | 0d 35 2f 32 37 2f 39 35 |changed.|.5/27/95|
|000001e0| 20 64 67 70 20 72 65 70 | 6c 61 63 65 64 20 23 69 | dgp rep|laced #i|
|000001f0| 6e 63 6c 75 64 65 20 3c | 6d 61 74 68 2e 68 3e 20 |nclude <|math.h> |
|00000200| 62 79 20 23 69 6e 63 6c | 75 64 65 20 22 56 69 64 |by #incl|ude "Vid|
|00000210| 65 6f 54 6f 6f 6c 62 6f | 78 2e 68 22 2c 20 73 69 |eoToolbo|x.h", si|
|00000220| 6e 63 65 20 49 20 72 6f | 75 74 69 6e 65 6c 79 0d |nce I ro|utinely.|
|00000230| 09 09 09 63 6f 6d 70 69 | 6c 65 20 65 76 65 72 79 |...compi|le every|
|00000240| 74 68 69 6e 67 20 77 69 | 74 68 20 74 68 65 20 56 |thing wi|th the V|
|00000250| 69 64 65 6f 54 6f 6f 6c | 62 6f 78 20 70 72 65 63 |ideoTool|box prec|
|00000260| 6f 6d 70 69 6c 65 64 20 | 68 65 61 64 65 72 2c 20 |ompiled |header, |
|00000270| 77 68 69 63 68 0d 09 09 | 09 6e 6f 72 6d 61 6c 6c |which...|.normall|
|00000280| 79 20 69 6e 63 6c 75 64 | 65 64 20 66 70 2e 68 20 |y includ|ed fp.h |
|00000290| 69 6e 73 74 65 61 64 20 | 6f 66 20 6d 61 74 68 2e |instead |of math.|
|000002a0| 68 2e 0d 2a 2f 0d 23 70 | 72 61 67 6d 61 20 6f 6e |h..*/.#p|ragma on|
|000002b0| 63 65 09 2f 2a 20 70 72 | 65 76 65 6e 74 20 6d 75 |ce./* pr|event mu|
|000002c0| 6c 74 69 70 6c 65 20 69 | 6e 63 6c 75 73 69 6f 6e |ltiple i|nclusion|
|000002d0| 73 20 6f 66 20 74 68 69 | 73 20 66 69 6c 65 20 2a |s of thi|s file *|
|000002e0| 2f 0d 23 69 6e 63 6c 75 | 64 65 20 22 56 69 64 65 |/.#inclu|de "Vide|
|000002f0| 6f 54 6f 6f 6c 62 6f 78 | 2e 68 22 0d 23 69 66 20 |oToolbox|.h".#if |
|00000300| 21 64 65 66 69 6e 65 64 | 28 5f 53 54 44 49 4f 29 |!defined|(_STDIO)|
|00000310| 0d 09 23 69 6e 63 6c 75 | 64 65 20 3c 73 74 64 69 |..#inclu|de <stdi|
|00000320| 6f 2e 68 3e 0d 23 65 6e | 64 69 66 0d 23 69 66 20 |o.h>.#en|dif.#if |
|00000330| 21 64 65 66 69 6e 65 64 | 28 5f 53 54 44 4c 49 42 |!defined|(_STDLIB|
|00000340| 29 0d 09 23 69 6e 63 6c | 75 64 65 20 3c 73 74 64 |)..#incl|ude <std|
|00000350| 6c 69 62 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 23 64 |lib.h>.#|endif.#d|
|00000360| 65 66 69 6e 65 20 4d 41 | 58 5f 43 4f 4e 54 52 41 |efine MA|X_CONTRA|
|00000370| 53 54 53 20 32 30 30 0d | 23 64 65 66 69 6e 65 20 |STS 200.|#define |
|00000380| 49 4c 4c 45 47 41 4c 5f | 50 41 52 41 4d 45 54 45 |ILLEGAL_|PARAMETE|
|00000390| 52 53 20 2d 31 2e 30 09 | 2f 2a 20 75 6e 69 71 75 |RS -1.0.|/* uniqu|
|000003a0| 65 20 76 61 6c 75 65 20 | 69 6e 64 69 63 61 74 69 |e value |indicati|
|000003b0| 6e 67 20 70 61 72 61 6d | 65 74 65 72 73 20 6f 75 |ng param|eters ou|
|000003c0| 74 20 6f 66 20 62 6f 75 | 6e 64 73 20 2a 2f 0d 23 |t of bou|nds */.#|
|000003d0| 64 65 66 69 6e 65 20 4d | 41 43 49 4e 54 4f 53 48 |define M|ACINTOSH|
|000003e0| 20 31 0d 23 69 66 6e 64 | 65 66 20 65 78 70 31 30 | 1.#ifnd|ef exp10|
|000003f0| 0d 09 23 64 65 66 69 6e | 65 20 65 78 70 31 30 28 |..#defin|e exp10(|
|00000400| 78 29 20 65 78 70 28 4c | 4f 47 31 30 2a 28 78 29 |x) exp(L|OG10*(x)|
|00000410| 29 09 09 09 2f 2a 20 66 | 61 73 74 65 72 20 74 68 |).../* f|aster th|
|00000420| 61 6e 20 70 6f 77 28 31 | 30 2e 30 2c 78 29 20 2a |an pow(1|0.0,x) *|
|00000430| 2f 0d 23 65 6e 64 69 66 | 0d 23 75 6e 64 65 66 20 |/.#endif|.#undef |
|00000440| 70 6f 77 0d 23 64 65 66 | 69 6e 65 20 70 6f 77 28 |pow.#def|ine pow(|
|00000450| 78 2c 79 29 20 65 78 70 | 28 6c 6f 67 28 78 29 2a |x,y) exp|(log(x)*|
|00000460| 28 79 29 29 09 09 09 2f | 2a 20 66 61 73 74 65 72 |(y)).../|* faster|
|00000470| 20 62 79 20 75 73 65 20 | 6f 66 20 36 38 38 38 31 | by use |of 68881|
|00000480| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 20 2a 2f | instruc|tions */|
|00000490| 0d 23 69 66 20 21 64 65 | 66 69 6e 65 64 28 4c 4f |.#if !de|fined(LO|
|000004a0| 47 31 30 29 0d 09 23 64 | 65 66 69 6e 65 20 4c 4f |G10)..#d|efine LO|
|000004b0| 47 31 30 09 32 2e 33 30 | 32 35 38 35 30 39 32 39 |G10.2.30|25850929|
|000004c0| 39 34 30 34 35 36 38 34 | 30 32 09 2f 2a 20 63 6f |94045684|02./* co|
|000004d0| 6d 70 75 74 65 64 20 69 | 6e 20 4d 61 74 68 65 6d |mputed i|n Mathem|
|000004e0| 61 74 69 63 61 20 2a 2f | 0d 23 65 6e 64 69 66 0d |atica */|.#endif.|
|000004f0| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00000500| 7b 0d 09 64 6f 75 62 6c | 65 20 63 6f 6e 74 72 61 |{..doubl|e contra|
|00000510| 73 74 3b 0d 09 6c 6f 6e | 67 20 74 72 69 61 6c 73 |st;..lon|g trials|
|00000520| 3b 0d 09 6c 6f 6e 67 20 | 63 6f 72 72 65 63 74 3b |;..long |correct;|
|00000530| 0d 7d 20 63 6f 6e 74 72 | 61 73 74 52 65 63 6f 72 |.} contr|astRecor|
|00000540| 64 3b 0d 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |d;..type|def stru|
|00000550| 63 74 20 7b 0d 09 6c 6f | 6e 67 20 63 6f 6e 74 72 |ct {..lo|ng contr|
|00000560| 61 73 74 73 3b 0d 09 63 | 6f 6e 74 72 61 73 74 52 |asts;..c|ontrastR|
|00000570| 65 63 6f 72 64 20 63 5b | 4d 41 58 5f 43 4f 4e 54 |ecord c[|MAX_CONT|
|00000580| 52 41 53 54 53 5d 3b 09 | 2f 2a 20 61 6e 20 61 72 |RASTS];.|/* an ar|
|00000590| 72 61 79 20 6f 66 20 72 | 65 63 6f 72 64 73 20 69 |ray of r|ecords i|
|000005a0| 73 20 65 61 73 69 65 72 | 20 74 6f 20 73 6f 72 74 |s easier| to sort|
|000005b0| 20 2a 2f 0d 7d 20 64 61 | 74 61 52 65 63 6f 72 64 | */.} da|taRecord|
|000005c0| 3b 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |;..typed|ef struc|
|000005d0| 74 20 7b 0d 09 64 6f 75 | 62 6c 65 20 6c 6f 67 41 |t {..dou|ble logA|
|000005e0| 6c 70 68 61 3b 0d 09 64 | 6f 75 62 6c 65 20 62 65 |lpha;..d|ouble be|
|000005f0| 74 61 3b 0d 09 64 6f 75 | 62 6c 65 20 67 61 6d 6d |ta;..dou|ble gamm|
|00000600| 61 3b 0d 09 64 6f 75 62 | 6c 65 20 64 65 6c 74 61 |a;..doub|le delta|
|00000610| 3b 0d 7d 20 70 61 72 61 | 6d 52 65 63 6f 72 64 3b |;.} para|mRecord;|
|00000620| 0d 0d 23 64 65 66 69 6e | 65 20 50 41 52 41 4d 53 |..#defin|e PARAMS|
|00000630| 20 28 28 73 68 6f 72 74 | 29 28 73 69 7a 65 6f 66 | ((short|)(sizeof|
|00000640| 28 70 61 72 61 6d 52 65 | 63 6f 72 64 29 2f 73 69 |(paramRe|cord)/si|
|00000650| 7a 65 6f 66 28 64 6f 75 | 62 6c 65 29 29 29 0d 0d |zeof(dou|ble)))..|
|00000660| 74 79 70 65 64 65 66 20 | 64 6f 75 62 6c 65 20 28 |typedef |double (|
|00000670| 2a 50 73 79 63 68 6f 6d | 65 74 72 69 63 46 75 6e |*Psychom|etricFun|
|00000680| 63 74 69 6f 6e 50 74 72 | 29 28 64 6f 75 62 6c 65 |ctionPtr|)(double|
|00000690| 20 63 6f 6e 74 72 61 73 | 74 2c 70 61 72 61 6d 52 | contras|t,paramR|
|000006a0| 65 63 6f 72 64 20 2a 70 | 61 72 61 6d 50 74 72 29 |ecord *p|aramPtr)|
|000006b0| 3b 0d 0d 64 6f 75 62 6c | 65 20 57 65 69 62 75 6c |;..doubl|e Weibul|
|000006c0| 6c 28 64 6f 75 62 6c 65 | 20 63 6f 6e 74 72 61 73 |l(double| contras|
|000006d0| 74 2c 70 61 72 61 6d 52 | 65 63 6f 72 64 20 2a 70 |t,paramR|ecord *p|
|000006e0| 61 72 61 6d 50 74 72 29 | 3b 0d 64 6f 75 62 6c 65 |aramPtr)|;.double|
|000006f0| 20 4c 6f 67 4c 69 6b 65 | 6c 69 68 6f 6f 64 28 64 | LogLike|lihood(d|
|00000700| 61 74 61 52 65 63 6f 72 | 64 20 2a 64 61 74 61 2c |ataRecor|d *data,|
|00000710| 70 61 72 61 6d 52 65 63 | 6f 72 64 20 2a 70 61 72 |paramRec|ord *par|
|00000720| 61 6d 73 2c 0d 09 50 73 | 79 63 68 6f 6d 65 74 72 |ams,..Ps|ychometr|
|00000730| 69 63 46 75 6e 63 74 69 | 6f 6e 50 74 72 20 50 73 |icFuncti|onPtr Ps|
|00000740| 79 63 68 46 75 6e 29 3b | 0d 64 6f 75 62 6c 65 20 |ychFun);|.double |
|00000750| 50 73 79 63 68 6f 6d 65 | 74 72 69 63 46 69 74 28 |Psychome|tricFit(|
|00000760| 70 61 72 61 6d 52 65 63 | 6f 72 64 20 2a 70 61 72 |paramRec|ord *par|
|00000770| 61 6d 50 74 72 0d 09 2c | 50 73 79 63 68 6f 6d 65 |amPtr..,|Psychome|
|00000780| 74 72 69 63 46 75 6e 63 | 74 69 6f 6e 50 74 72 20 |tricFunc|tionPtr |
|00000790| 50 73 79 63 68 46 75 6e | 0d 09 2c 64 61 74 61 52 |PsychFun|..,dataR|
|000007a0| 65 63 6f 72 64 20 2a 64 | 61 74 61 50 74 72 2c 64 |ecord *d|ataPtr,d|
|000007b0| 6f 75 62 6c 65 20 2a 6c | 6f 67 4c 69 6b 65 6c 69 |ouble *l|ogLikeli|
|000007c0| 68 6f 6f 64 50 74 72 2c | 69 6e 74 20 64 65 67 72 |hoodPtr,|int degr|
|000007d0| 65 65 73 4f 66 46 72 65 | 65 64 6f 6d 0d 09 2c 64 |eesOfFre|edom..,d|
|000007e0| 6f 75 62 6c 65 20 2a 63 | 68 69 53 71 75 61 72 65 |ouble *c|hiSquare|
|000007f0| 50 74 72 2c 69 6e 74 20 | 2a 63 68 69 53 71 75 61 |Ptr,int |*chiSqua|
|00000800| 72 65 44 46 50 74 72 29 | 3b 0d 76 6f 69 64 20 4d |reDFPtr)|;.void M|
|00000810| 6f 6e 6f 74 6f 6e 69 63 | 46 69 74 28 64 61 74 61 |onotonic|Fit(data|
|00000820| 52 65 63 6f 72 64 20 2a | 64 61 74 61 2c 64 6f 75 |Record *|data,dou|
|00000830| 62 6c 65 20 2a 6c 6f 67 | 4c 69 6b 65 6c 69 68 6f |ble *log|Likeliho|
|00000840| 6f 64 50 74 72 2c 69 6e | 74 20 2a 64 65 67 72 65 |odPtr,in|t *degre|
|00000850| 65 73 4f 66 46 72 65 65 | 64 6f 6d 50 74 72 29 3b |esOfFree|domPtr);|
|00000860| 0d 76 6f 69 64 20 53 6f | 72 74 41 6e 64 4d 65 72 |.void So|rtAndMer|
|00000870| 67 65 43 6f 6e 74 72 61 | 73 74 73 28 64 61 74 61 |geContra|sts(data|
|00000880| 52 65 63 6f 72 64 20 2a | 64 61 74 61 50 74 72 29 |Record *|dataPtr)|
|00000890| 3b 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.......|........|
|000008a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000910| 00 00 13 7f 0d 42 61 73 | 69 63 20 54 6f 6f 6c 62 |.....Bas|ic Toolb|
|00000920| 6f 78 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ox......|........|
|00000930| 08 51 75 69 63 6b 33 2e | 68 69 02 00 00 00 54 45 |.Quick3.|hi....TE|
|00000940| 58 54 43 57 49 45 01 00 | 00 a0 00 00 00 00 00 00 |XTCWIE..|........|
|00000950| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 a0 00 00 |..TEXTCW|IE......|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 a2 41 07 c4 00 00 | 08 12 00 00 01 9a 66 65 |...A....|......fe|
|00000980| 72 65 6e 63 65 00 00 00 | 00 00 06 44 25 00 00 00 |rence...|...D%...|
|00000990| 13 7f 08 57 57 53 4f 20 | 4d 67 72 00 00 00 00 00 |...WWSO |Mgr.....|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 06 46 25 00 | 00 00 13 8b 09 4d 45 58 |.....F%.|.....MEX|
|000009c0| 20 61 6c 69 61 73 00 00 | 00 00 00 00 00 00 00 00 | alias..|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 09 34 |........|.......4|
|000009e0| 25 00 00 00 13 8e 00 00 | 00 00 00 00 00 00 00 00 |%.......|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000a10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a20| 00 00 00 00 00 00 00 03 | 00 04 00 3d 00 03 02 12 |........|...=....|
|00000a30| 02 9e 00 3d 00 03 02 12 | 02 9e ac 3b 74 93 00 00 |...=....|...;t...|
|00000a40| 02 7c 00 00 02 ac 00 00 | 00 00 00 00 00 00 00 04 |.|......|........|
|00000a50| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000a60| 00 00 00 46 01 89 2f e8 | 1a 72 00 00 00 1c 00 46 |...F../.|.r.....F|
|00000a70| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000a80| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000a90| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+